home *** CD-ROM | disk | FTP | other *** search
/ Erotic Games: Memory / Erotic Games: Memory.iso / mac / air_installers / AdobeAIR.exe / setup.swf / scripts / mx / managers / DragManager.as < prev    next >
Text File  |  2009-02-12  |  2KB  |  81 lines

  1. package mx.managers
  2. {
  3.    import flash.events.MouseEvent;
  4.    import mx.core.DragSource;
  5.    import mx.core.IFlexDisplayObject;
  6.    import mx.core.IUIComponent;
  7.    import mx.core.Singleton;
  8.    import mx.core.mx_internal;
  9.    import mx.managers.dragClasses.DragProxy;
  10.    
  11.    use namespace mx_internal;
  12.    
  13.    public class DragManager
  14.    {
  15.       
  16.       private static var implClassDependency:DragManagerImpl;
  17.       
  18.       private static var _impl:IDragManager;
  19.       
  20.       public static const MOVE:String = "move";
  21.       
  22.       public static const COPY:String = "copy";
  23.       
  24.       mx_internal static const VERSION:String = "3.0.0.0";
  25.       
  26.       public static const LINK:String = "link";
  27.       
  28.       public static const NONE:String = "none";
  29.        
  30.       
  31.       public function DragManager()
  32.       {
  33.          super();
  34.       }
  35.       
  36.       private static function get impl() : IDragManager
  37.       {
  38.          if(!_impl)
  39.          {
  40.             _impl = IDragManager(Singleton.getInstance("mx.managers::IDragManager"));
  41.          }
  42.          return _impl;
  43.       }
  44.       
  45.       mx_internal static function get dragProxy() : DragProxy
  46.       {
  47.          return Object(impl).dragProxy;
  48.       }
  49.       
  50.       public static function showFeedback(param1:String) : void
  51.       {
  52.          impl.showFeedback(param1);
  53.       }
  54.       
  55.       public static function acceptDragDrop(param1:IUIComponent) : void
  56.       {
  57.          impl.acceptDragDrop(param1);
  58.       }
  59.       
  60.       public static function doDrag(param1:IUIComponent, param2:DragSource, param3:MouseEvent, param4:IFlexDisplayObject = null, param5:Number = 0, param6:Number = 0, param7:Number = 0.5, param8:Boolean = true) : void
  61.       {
  62.          impl.doDrag(param1,param2,param3,param4,param5,param6,param7,param8);
  63.       }
  64.       
  65.       mx_internal static function endDrag() : void
  66.       {
  67.          impl.endDrag();
  68.       }
  69.       
  70.       public static function get isDragging() : Boolean
  71.       {
  72.          return impl.isDragging;
  73.       }
  74.       
  75.       public static function getFeedback() : String
  76.       {
  77.          return impl.getFeedback();
  78.       }
  79.    }
  80. }
  81.